<?php
class EBackButtonWidget extends CWidget {
 
    public $width = "150px";
    public $name = 'btnBack';
    public $class = 'uibutton loading confirm';
    
    public function run() {
        echo CHtml::button('Back', array(
            'name' => $this->name,
            'class' => $this->class,
            'style' => 'width:'.$this->width.';',
            'onclick' => "history.go(-1)",
        ));
    }
 
}

// $this->widget('application.ext.data.EBackButtonWidget',
//   array(
//    'width' => "100%",
//   ));
